package cn.lili.xiaoran.entity.dtos;


import java.util.Date;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import cn.lili.common.vo.PageVO;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * 行业(LiIndustry)实体类
 *
 * @author makejava
 * @since 2022-08-09 16:23:20
 */
@Data
@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
public class LiIndustryDTO extends PageVO {
    private static final long serialVersionUID = -82635884750642177L;
    private Integer id;
    private String industryName;
    private String industryIcon;
    private String remask;
    private String createBy;
    private Date createTime;
    private Boolean deleteFlag;
    private String updateBy;
    private Date updateTime;
    private Boolean isAdmin;

    public <T> QueryWrapper<T> queryWrapper() {
        QueryWrapper<T> queryWrapper = new QueryWrapper<>();
        if (id != null) {
            queryWrapper.eq("id", id);
        }
        if (isAdmin != null) {
            queryWrapper.eq("is_admin", isAdmin);
        }
        if (industryName != null) {
            queryWrapper.eq("industry_name", industryName);
        }
        if (deleteFlag != null) {
            queryWrapper.eq("delete_flag", deleteFlag);
        }
        return queryWrapper;
    }
}

